﻿using IapService.Entity;

namespace IapService.Data
{
    public class ClientLiteData : Data<ClientLite>
    {
        public ClientLite Get(int id)
        {
            ClientLite item;
            using (var session = Session)
            {
                item = session.Get<ClientLite>(id);
            }
            return item;
        }

        public new ClientLite Save(ClientLite item)
        {
            using (var session = Session)
            {
                session.SaveOrUpdate(item);
                session.Flush();
            }
            return item;
        }
    }
}